package com.lanting.uestc.speaking.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.lanting.uestc.speaking.utils.ActivityPool;

public class BaseActivity extends AppCompatActivity {

	@Override
	protected void onCreate(@Nullable Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		ActivityPool.addActivityToPool(this);
	}
	
	@Override
	protected void onDestroy() {
		ActivityPool.removeActivity(this);
		super.onDestroy();
	}
	
}
